package com.tao.repository;

import com.tao.entity.Member;
import com.tao.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @Author: wangying
 * @Description:
 * @Date: Created in  2019/3/1
 */
public interface MemberRepository extends JpaRepository<Member,Integer>, JpaSpecificationExecutor<Member> {

    Member  findByUserNameAndPasswordAndAndDeviceCode(String userName, String password,String deviceCode);



    List<Member> findAllByUserName(String userName);
}
